package idazkaria;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.JTextPane;

import com.toedter.calendar.JCalendar;

public class EI_Terapeuta_baten_agenda_pantaila_1_1_5_1 extends JFrame {

	private JPanel contentPane;
	private JTextField izena;
	private JTextField abiz;
	private JTextField NAN;
	private JTable table;
	
	

	/**
	 * Launch the application.
	 */
	
	
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					EI_Terapeuta_baten_agenda_pantaila_1_1_5_1 frame = new EI_Terapeuta_baten_agenda_pantaila_1_1_5_1();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public EI_Terapeuta_baten_agenda_pantaila_1_1_5_1() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 480, 308);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		//egutegia panel batean sartu dut. AGENDA etiketa azpian jartzeko, setBounds metodoaren zenbakiak aldatu ditut.
		JPanel calendar=new JPanel();
		calendar.setBounds(10, 36, 223, 178);
		this.contentPane.add(calendar);
		calendar.add(new JCalendar());
		
		JLabel lblAgenda = new JLabel("AGENDA:");
		lblAgenda.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblAgenda.setBounds(10, 11, 116, 14);
		contentPane.add(lblAgenda);
		
		JLabel lblIzena = new JLabel("Izena");
		lblIzena.setBounds(255, 56, 46, 14);
		contentPane.add(lblIzena);
		
		izena = new JTextField();
		izena.setBounds(304, 53, 131, 20);
		contentPane.add(izena);
		izena.setColumns(10);
		
		JLabel lblAbizena = new JLabel("Abizena");
		lblAbizena.setBounds(255, 94, 46, 14);
		contentPane.add(lblAbizena);
		
		abiz = new JTextField();
		abiz.setBounds(304, 91, 131, 20);
		contentPane.add(abiz);
		abiz.setColumns(10);
		
		JLabel lblNana = new JLabel("NAN-a");
		lblNana.setBounds(255, 135, 46, 14);
		contentPane.add(lblNana);
		
		NAN = new JTextField();
		NAN.setBounds(304, 132, 131, 20);
		contentPane.add(NAN);
		NAN.setColumns(10);
		
		JButton btnAtzera = new JButton("Atzera");
		btnAtzera.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				EI_Terapeuta_baten_agenda_kontsultatu_1_1_5 bat=new EI_Terapeuta_baten_agenda_kontsultatu_1_1_5();
				bat.setVisible(true);
				EI_Terapeuta_baten_agenda_pantaila_1_1_5_1.this.setVisible(false);}
			});
		btnAtzera.setBounds(255, 225, 89, 23);
		contentPane.add(btnAtzera);
		
		table = new JTable();
		table.setFillsViewportHeight(true);
		table.setBounds(126, 107, 1, 1);
		contentPane.add(table);
		
		JButton btnOk = new JButton("OK");
		btnOk.setBounds(159, 225, 89, 23);
		contentPane.add(btnOk);
		
		JLabel label = new JLabel("Adib: 11111111v");
		label.setBounds(304, 163, 115, 14);
		contentPane.add(label);
	}
}
